﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace MetroGS
{
    using FirstFloor.ModernUI.Windows.Controls;
    using MetroGS.AppClass;
    using MetroGS.Properties;
    public partial class MainWindow : ModernWindow
    {
        UpdateAndInstall upinst = new UpdateAndInstall();

        public MainWindow()
        {
            InitializeComponent();
        }

        private void ModernWindow_Loaded(object sender, RoutedEventArgs e)
        {
            if (Settings.Default.update == "on")
            {
                upinst.lookforupdate(this);
            }

            if (Settings.Default.fulloption == "on")
            {
                this.WindowState = System.Windows.WindowState.Maximized;
            }

            if (Settings.Default.initstart == "true")
            {
                ModernDialog.ShowMessage("This release will not reflect the quality of the final product", "Alpha Warning", MessageBoxButton.OK);
                Settings.Default.initstart = "false";
                Properties.Settings.Default.Save();
            }
        }
    }
}
